package com.deepocean.entity;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.time.LocalDateTime;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class CentrifugeInAndOut1Hour {
    private Double materialInput;
    private Double waterOutput;
    private Double coalOutput;
    private LocalDateTime beginTime;
    private LocalDateTime endTime;

    public Double getMaterialInput() {
        return materialInput;
    }

    public void setMaterialInput(Double materialInput) {
        this.materialInput = materialInput;
    }

    public Double getWaterOutput() {
        return waterOutput;
    }

    public void setWaterOutput(Double waterOutput) {
        this.waterOutput = waterOutput;
    }

    public Double getCoalOutput() {
        return coalOutput;
    }

    public void setCoalOutput(Double coalOutput) {
        this.coalOutput = coalOutput;
    }

    public LocalDateTime getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(LocalDateTime beginTime) {
        this.beginTime = beginTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
        this.beginTime = endTime.plusMinutes(-60);
    }
}
